import { _decorator, Component, Node } from 'cc';
import { PopManager } from '../manager/PopManager';
import { AppControll, PopView } from '../manager/AppControll';
import { SoundManager } from '../manager/SoundManger';
import { GameData } from '../system/GameData';
const { ccclass, property } = _decorator;

@ccclass('RankBtn')
export class RankBtn extends Component {
    protected onLoad(): void {
        this.node.on(Node.EventType.TOUCH_END, this.Onclick, this);
    }

    Onclick() {
        AppControll.ShelvedTime = 0;
        SoundManager.Instance<SoundManager>().PlayEffect(GameData.btnClick);
        PopManager.Instance<PopManager>().ShowPop(PopView.worldRank);
    }
}


